home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 1 / Mac Magazin and MacEasy Magazine CD - Issue 01.iso / Sharewarebibliothek / Powermac / C64 / SOURCE / Processor.h < prev    next >
Text File  |  1994-06-06  |  517b  |  25 lines

  1. #define ResetTo    0xfffc
  2. #define IrqTo    0xfffe
  3. #define NMITo    0xfffa
  4.  
  5. typedef unsigned char byte;
  6. typedef unsigned int word;
  7.  
  8. #define CAR 1
  9. #define ZER 2
  10. #define INT 4
  11. #define DEC 8
  12. #define BKC    16
  13. #define OVF    64
  14. #define NEG 128
  15.  
  16. extern word pc;
  17. extern byte a, x, y, flags, sp;
  18.  
  19. extern byte *RAM, *loROM, *hiROM, *charROM;
  20. extern byte *RAMp1, *loROMp1, *hiROMp1, *charROMp1;
  21. extern byte **memory, **memoryp1;
  22.  
  23. #define ByteAt(addr) ((byte)*memory[addr])
  24. #define WordAt(addr) ((word)*memory[addr]+(word)*memoryp1[addr]*256)
  25.